/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.etop.dto;

import java.util.Date;

/**
 *
 * @author cjh(358319110@qq.com)
 */
public class UserGoodsDTO {

    private String goodsName;
    private int isReturn;
    private String userName;
    private Date lendDate;
    private Date returnDate;
    private String userPhone;
    private String userEmail;
    private String userAddress;
    private int gid;
    private int bid;
    private String description;

    public UserGoodsDTO() {
    }

    public UserGoodsDTO(String goodsName, int isReturn, String userName,
            Date lendDate, Date returnDate, String userPhone, String userEmail,
            String userAddress, int gid, int bid, String description) {
        this.goodsName = goodsName;
        this.isReturn = isReturn;
        if (isReturn == 0) {
            this.userName = userName;
            this.lendDate = lendDate;
            this.returnDate = returnDate;
            this.userPhone = userPhone;
            this.userEmail = userEmail;
            this.userAddress = userAddress;
            this.bid = bid;
            this.description = description;
        }
        this.gid = gid;
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getIsReturn() {
        return isReturn;
    }

    public void setIsReturn(int isReturn) {
        this.isReturn = isReturn;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getLendDate() {
        return lendDate;
    }

    public void setLendDate(Date lendDate) {
        this.lendDate = lendDate;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "UserGoodsDTO{" + "goodsName=" + goodsName + ", isReturn=" + isReturn + ", userName=" + userName + ", lendDate=" + lendDate + ", returnDate=" + returnDate + ", userPhone=" + userPhone + ", userEmail=" + userEmail + ", userAddress=" + userAddress + ", gid=" + gid + ", bid=" + bid + ", description=" + description + '}';
    }

}
